projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb16780
)
Misc casts for MSVC.
author
robertl
<robertl>
Fri, 13 Oct 2006 03:01:25 +0000
(
03:01
+0000)
committer
robertl
<robertl>
Fri, 13 Oct 2006 03:01:25 +0000
(
03:01
+0000)
kml.c
patch
|
blob
|
history
util.c
patch
|
blob
|
history
diff --git
a/kml.c
b/kml.c
index 684ec27f40297116c8b2036ecd76df0d2fc0e0a2..4f386393da53d7413668ee527529ad5d6356d762 100644
(file)
--- a/
kml.c
+++ b/
kml.c
@@
-804,7
+804,7
@@
kml_wr_position(waypoint *wpt)
}
if (max_position_points && (posn_track_points >= max_position_points)) {
- waypoint *tonuke = QUEUE_FIRST(&trk_head->waypoint_list);
+ waypoint *tonuke =
(waypoint *)
QUEUE_FIRST(&trk_head->waypoint_list);
dequeue(&tonuke->Q);
waypt_free(tonuke);
}
diff --git
a/util.c
b/util.c
index f05f7d120cfa1a21db02b4fcb684caf448fb4a88..ad359d4c8e32b4bba1dc70c86396f8a9b1f74312 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-297,7
+297,7
@@
xvasprintf(char **strp, const char *fmt, va_list args)
/* size of first buffer malloc; start small to exercise grow routines */
#define FIRSTSIZE 64
char *buf = NULL;
-
size_
t bufsize;
+
in
t bufsize;
char *newbuf;
size_t nextsize = 0;
int outsize;